How to hack from one computer to another
2025-07-27
Teleporting Between Computers
Assume you have to computers, they have the following IP address
- 10.0.0.2 PC1
- 10.0.0.3 PC2
One can then use nc to launch the simplest listener on PC1 at port 3000
- nc -l 3000 to launch the listener
Then I can use nc 10.0.0.2 3000 to teleport into the PC1 from PC2 and then send command as text
Check IP address
Public IP Address at the beginning of the VPN tunnel
curl https://api.ipify.orggets the public IP address
Public IP Address at the end of the VPN tunnel
curl -4 ifconfig.megets the public IP addresscurl -6 ifconfig.megets the public IPv6 addresscurl https://ifconfig.cogets the public IP addresscurl https://ifconfig.co/ipgets the public IP addresscurl https://ipinfo.io/ipgets the public IP addresscurl https://icanhazip.comgets the public IP addresscurl https://checkip.amazonaws.comgets the public IP addresscurl https://api.myip.comgets the public IP address
Local IP Address
ip addrgets the local IP addresshostname -Igets the local IP address in a single line
Check the geographical location of the IP address
curl https://ipinfo.iogets the geographical location of the IP addresscurl https://ipinfo.io/123.234.10.1/jsongets the geographical location of the specific IP addresscurl https://ipapi.co/jsongets the geographical location of the IP addresscurl https://ipapi.co/123.234.10.1/jsongets the geographical location of the specific IP address